; * lisp/files.el (executable-find): Doc fix.
authorEli Zaretskii <eliz@gnu.org>
Wed, 12 Mar 2025 12:53:03 +0000 (14:53 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 12 Mar 2025 12:53:03 +0000 (14:53 +0200)
lisp/files.el

index 79dbe5ad53e22e6587a2a36134eab140b0af6c1c..2707a4e8bbe867fbac9df81e66232fec4349968f 100644 (file)
@@ -1286,9 +1286,9 @@ the value of the variable `exec-path'."
 
 (defun executable-find (command &optional remote)
   "Search for COMMAND in `exec-path' and return the absolute file name.
-Return nil if COMMAND is not found anywhere in `exec-path'.  If
-REMOTE is non-nil, search on the remote host indicated by
-`default-directory' instead."
+Return nil if COMMAND is not found anywhere in `exec-path'.
+If REMOTE is non-nil, search on a remote host if `default-directory' is
+remote, otherwise search locally."
   (if (and remote (file-remote-p default-directory))
       (let ((res (locate-file
                  command